package com.yifeng.repo.controller.postman.work.constant;

import java.util.regex.Pattern;

/**
 * Created by daibing on 2023/7/22.
 */
public class PostmanConstant {

    public static final String LEFT_BRACKET = "{{";
    public static final String RIGHT_BRACKET = "}}";

    public static final Pattern DATA_PATTERN = Pattern.compile("\\{\\{[A-Za-z0-9_-]+\\.DATA}}");
    public static final String WRAP_DATA_KEY_REGEX = "\\{\\{|.DATA}}";

    public static final Pattern DATA_LIST_PATTERN = Pattern.compile("\\{\\{[A-Za-z0-9_-]+\\.DATALIST}}");
    public static final String WRAP_DATA_LIST_KEY_REGEX = "\\{\\{|.DATALIST}}";
    public static final String DATA_LIST_VALUE = "value";
    public static final String DATA_LIST_MAPPING = "mapping";

    /**
     * 签名动作
     */
    public static final String SIGN_ACTION_KEY = "Signature.ACTION";

    /**
     * 补充参数：SignatureFields（指定签名的拼接字段）
     */
    public static final String SIGN_FIELDS_KEY = "SignatureFields";

}
